-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Core: Drop support for old jQuery or old browsers #2249
Conversation
eaa62e9
to
a9aa0cd
Compare
ea17854
to
01162fa
Compare
8f53949
to
7f8d411
Compare
<script src="../../ui/core.js"></script> | ||
<script src="../../ui/widget.js"></script> | ||
<script src="../../ui/mouse.js"></script> | ||
<script src="../../ui/slider.js"></script> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why doesn't this need to load JS anymore?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It does still load JS. This was the old way of doing it that also included loading the deprecated core.js file that this PR removes.
This template actually used both ways of loading JS; it looks like a migration oversight. I checked that the demo still works fine after these removals.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, pending my question
Also, remove the ability to run the test suite in jQuery <1.12.4 & <2.2.4. Closes jquerygh-2249
This follows the naming strategy for other internal properties. Ref jquerygh-2249
Avoid relying on jQuery patches. Instead: * use `CSS.escape` instead of `jQuery.escapeSelector` * use `.filter()` with a proper handler instead of `.even()` Keep `jquery-patch.js` for backwards compatibility, though. Also, add tests for jquery-patch. Ref jquerygh-2249
7f8d411
to
837f62e
Compare
Also, fix checkboxradio visual tests. Ref jquerygh-2249
837f62e
to
ba4b0dc
Compare
Also, remove the ability to run the test suite in jQuery <1.12.4 & <2.2.4. Closes jquerygh-2249
This follows the naming strategy for other internal properties. Ref jquerygh-2249
Avoid relying on jQuery patches. Instead: * use `CSS.escape` instead of `jQuery.escapeSelector` * use `.filter()` with a proper handler instead of `.even()` Keep `jquery-patch.js` for backwards compatibility, though. Also, add tests for jquery-patch. Ref jquerygh-2249
Also, fix checkboxradio visual tests. Ref jquerygh-2249
ba4b0dc
to
5f615c2
Compare
Landed in daa6fb5...5f615c2. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 by reading
<script src="../../ui/core.js"></script> | ||
<script src="../../ui/widget.js"></script> | ||
<script src="../../ui/mouse.js"></script> | ||
<script src="../../ui/slider.js"></script> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch!
Changes:
storedStylesheet
to_storedStylesheet
CSS.escape
instead ofjQuery.escapeSelector
.filter()
with a proper handler instead of.even()
ui/core.js
file